package com.example.databasehomework.jsonClasses;

public class StudentDatabaseInfo {
    String student_id;
    String name;
    String sex;
    String dept;
    String phone_number;
    String email;

    public StudentDatabaseInfo(String id, String name, int sex, String dept,
                               String phone, String email) {
        this.student_id = id;
        this.name = name;
        if (sex == 1) {
            this.sex = "男";
        } else {
            this.sex = "女";
        }
        this.dept = dept;
        this.phone_number = phone;
        if (email != null && !email.equals("")) {
            this.email = email;
        }
    }
}
